<template>
  <div class="detail-container">
    <el-button @click="$router.go(-1);" icon="el-icon-arrow-left">返回</el-button>
    <div class="content-box">
      <div v-html="data"></div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";

export default {
  name: "proDetails",
  computed: {
    ...mapGetters(["disabled"])
  },
  data() {
    return {
      data: ""
    };
  },
  created() {
    this.$store.dispatch("setDisabled", true);
    this.data = this.$route.query.data;
  },
  methods: {}
};
</script>

<style scoped>
.detail-container {
  background-color: #fff;
  padding: 20px 0 0 20px;
  border-radius: 6px;
}
.content-box {
  padding: 50px 180px;
}
.title-box {
  text-align: center;
  font-size: 24px;
  padding-bottom: 40px;
}
</style>
